<?php
return [
    'enablePrettyUrl' => true,
    'showScriptName' => false,
    'enableStrictParsing' => false,
    'rules' => [
        [
            'class' => \yii\rest\UrlRule::class,
            'pluralize'=>false,
            'controller' => [
                "wechat/services",
            ],/*
            'tokens' => [
                '{id}' => '<id:\\w+>'
            ],*/

        ],
        '/<controller:\w+>/<id:\d+>' => '<controller>/item',
        '/<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
        '/<controller:\w+>/<action:\w+>' => '<controller>/<action>',
        '/' => 'default/index'
    ],
];